<template>
  <div class="head">
    <div class="tab">
      <van-icon
        name="arrow-left"
        size="48"
        color="white"
        @click="$router.go(-1)"
      />
      <p>血染钟楼</p>
      <div class="tabLeft">
        <span></span>
        <p>教程</p>
      </div>
    </div>
    <van-tabs
      v-model="active"
      background="transparent"
      title-active-color="#d5c4be"
      title-inactive-color=" #6c6c6c"
    >
      <van-tab title="全部"></van-tab>
      <van-tab title="灾祸滋生 2" disabled></van-tab>
      <van-tab title="教派紫罗兰" disabled></van-tab>
      <van-tab title="" disabled></van-tab>
      <van-tab title="" disabled></van-tab>
      <van-tab title="" disabled></van-tab>
      <van-tab title="" disabled></van-tab>
      <van-tab title="" disabled></van-tab>
      <van-tab title="" disabled></van-tab>
      <van-tab title="" disabled></van-tab>
    </van-tabs>
    <div class="tabEnd" v-for="(item, j) in List" :key="j">
      <div class="tabEnd-mid">
        <img src="" alt="" />
        <div class="tabEnd-name">
          <p>{{ item.nickName }}</p>
          <p class="tabSpan">
            <span>{{ item.type }}</span> <span>{{ item.flag }}</span>
          </p>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import { getBloodBlock } from "../../../services/index";
export default {
  data() {
    return {
      active: 0,
      List: [],
    };
  },
  created() {
    getBloodBlock().then((e) => {
      console.log(e);
      this.List = e.data.data;
    });
  },
};
</script>

<style lang='scss' scoped>
.head {
  margin-top: 56px;
  .tab {
    width: 95%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    p {
      width: 160px;
      height: 56px;
      font-size: 40px;
      color: #9a9a9a;
    }
    .tabLeft {
      display: flex;
      width: 124px;
      justify-content: space-between;
      span {
        display: block;
        width: 40px;
        height: 40px;
        background-color: #cecece;
      }
      p {
        width: 56px;
        height: 40px;
        font-size: 28px;
      }
    }
  }
  .tabEnd {
    width: 670px;
    height: 176px;
    border-radius: 16px;
    margin: 36px auto 0;
    background-color: #efefef;
    color: #9fa19f;
    .tabEnd-mid {
      display: flex;
      .tabEnd-name {
        height: 120px;
        margin: 47px 0 0 28px;
        p {
          font-size: 28px;
          span {
            font-size: 24px;
          }
        }
        .tabSpan {
          margin-top: 4px;
        }
      }
    }
    img {
      width: 120px;
      height: 120px;
      margin: 28px 0 28px 26px;
    }
  }
}
</style>